package kr.hkit.score_pjt.DTO;

import kr.hkit.score_pjt.DTO.StdInfo;


public class StdInfo {
	private int stdGrade;
	private int stdRank;
	private int stdNum;
	private String stdName;
	private int korScore;
	private int engScore;
	private int mathScore;
	private int total;
	private int avg;
	
	public StdInfo() {}

	public StdInfo(int stdNum, String stdName, int korScore, int engScore,
			int mathScore) {
		this.stdNum = stdNum;
		this.stdName = stdName;
		this.korScore = korScore;
		this.engScore = engScore;
		this.mathScore = mathScore;
	}

	public int getStdRank() {
		return stdRank;
	}

	public StdInfo setStdRank(int stdRank) {
		this.stdRank = stdRank;
		return this;
	}

	public int getTotal() {
		return total;
	}

	public StdInfo setTotal(int total) {
		this.total = total;
		return this;
	}

	public int getAvg() {
		return avg;
	}

	public StdInfo setAvg(int avg) {
		this.avg = avg;
		return this;
	}

	public int getStdGrade() {
		return stdGrade;
	}

	public StdInfo setStdGrade(int stdGrade) {
		this.stdGrade = stdGrade;
		return this;
	}

	public int getStdNum() {
		return stdNum;
	}

	public StdInfo setStdNum(int stdNum) {
		this.stdNum = stdNum;
		return this;
	}

	public String getStdName() {
		return stdName;
	}

	public StdInfo setStdName(String stdName) {
		this.stdName = stdName;
		return this;
	}

	public int getKorScore() {
		return korScore;
	}

	public StdInfo setKorScore(int korScore) {
		this.korScore = korScore;
		return this;
	}

	public int getEngScore() {
		return engScore;
	}

	public StdInfo setEngScore(int engScore) {
		this.engScore = engScore;
		return this;
	}

	public int getMathScore() {
		return mathScore;
	}

	public StdInfo setMathScore(int mathScore) {
		this.mathScore = mathScore;
		return this;
	}

	@Override
	public String toString() {
		return String
				.format("StdInfo [stdGrade=%s, stdRank=%s, stdNum=%s, stdName=%s, korScore=%s, engScore=%s, mathScore=%s, total=%s, avg=%s]\n",
						stdGrade, stdRank, stdNum, stdName, korScore, engScore,
						mathScore, total, avg);
	}

}
